package com.mark.schoolManegePart.handler;


import com.mark.schoolManegePart.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;


@CrossOrigin
@Controller
public class GradeHandler {

    @Autowired
    private GradeService gradeService;



    @GetMapping("grade/test")
    @ResponseBody
    public List<String> testConnection() {
        return gradeService.testConn();
    }

    @GetMapping("grade/test1")
    @ResponseBody
    public String testConnection1() {
        return "success";
    }
}
